<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box1 {
        width: 400px;
        height: 400px;
        padding: 10px;
        border: 10px solid black;
        background-color: gray;
        font-size: 40px;
        margin: 0 auto;
        margin-top: 100px;

        /* outline-width: 20px;
        outline-color: orange;
        outline-style: solid; */
        /* 设置外轮廓与边框的距离，正负值都可以设置 */
        outline-offset: 40px;

        /* 复合属性 */
        outline: 50px solid blue;
      }
    </style>
  </head>

  <body>
    <div class="box1">你好啊</div>
    <div>
      Lorem ipsum dolor, sit amet consectetur adipisicing elit. Rem, autem
      quasi! Autem nam laborum, similique hic quibusdam aliquam neque unde ipsum
      animi nostrum et praesentium odio dicta est temporibus! Animi.
    </div>
  </body>
</html>
